package org.example;

import org.example.BeanDefinition;
@BeanDefinition(destroyMethod = "destroy")
public class YourBeanClass {
    private String propertyName;

    public YourBeanClass() {
        // 默认构造函数
    }

    public YourBeanClass(String propertyName) {
        this.propertyName = propertyName;
    }

    public void init() {
        System.out.println("YourBeanClass initialized.");
    }

    public void destroy() {
        System.out.println("YourBeanClass destroyed.");
    }

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public void doSomething() {
        System.out.println("Doing something with propertyName: " + propertyName);
    }
}
